#ifndef SOLARTERMS_H
#define SOLARTERMS_H

#include <iostream>
#include <string>
#include <conio.h>

using namespace std;

class fuction7 {
public:
    void Display() {
        int aan;
        cout << "请输入想查询的年份：";
        cin >> aan;
        const int x = 24;
        string a_name[x] = {
            "小寒","大寒","立春","雨水","惊蛰","春分",
            "清明","谷雨","立夏","小满","芒种","夏至",
            "小暑","大暑","立秋","处暑","白露","秋分",
            "寒露","霜降","立冬","小雪","大雪","冬至"
        };
        string a_date[x] = {
            "01-06","01-20","02-04","02-19","03-05","03-20",
            "04-04","04-19","05-05","05-20","06-05","06-21",
            "07-07","07-22","08-07","08-23","09-07","09-22",
            "10-08","10-23","11-07","11-22","12-07","12-21"
        };
        cout << endl << "【" << aan << "年】的二十四节气：" << endl << endl;
        for (int i = 0; i < x; i++) {
            cout << a_name[i] << " ： " << a_date[i] << endl;
        }

        cout << endl << "按任意键返回主菜单..." << endl;
        _getch();
    }
};

#endif
